<?php

namespace common\models;

class Material extends \yii\db\ActiveRecord
{
    public static function tableName()
    {
        return 'material';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['tally_id','uid'], 'integer'],
            [['price'], 'number'],
            [['title','spec','memo'], 'string'],
        ];
    }

    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'title' => 'Title',
            'spec' => 'Spec',
        ];
    }
}